//
//  ZDOrderFirstCell.m
//  ZDPension
//
//  Created by 刘甲奇 on 2017/6/21.
//  Copyright © 2017年 maker. All rights reserved.
//

#import "ZDOrderFirstCell.h"
#import "MakerTools.h"

@interface ZDOrderFirstCell()

@property (weak, nonatomic) IBOutlet UILabel *storeNameLabel;
@property (weak, nonatomic) IBOutlet UIImageView *consumeTypeIcon;
@property (weak, nonatomic) IBOutlet UILabel *orderNumberLabel;
@property (weak, nonatomic) IBOutlet UILabel *timerLabel;

@end

@implementation ZDOrderFirstCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(ZDOrderModel *)model
{
    _model = model;
    self.storeNameLabel.text = model.store_name;
    self.orderNumberLabel.text = [NSString stringWithFormat:@"订单号: %@",model.order_sn];
    self.timerLabel.text = [MakerTools getFormatTime:model.add_time];
    
    UIImage *image = [model.door_service isEqualToString:@"1"] ? [UIImage imageNamed:@"smfw"] : [UIImage imageNamed:@"ddxf"];
    self.consumeTypeIcon.image = image;
}

@end
